package com.example.tse.rbhttpservice.service.shopping.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


/**
* 获取购物车数据，用于下单页面（购买商品列表、收货地址、配送方式、支付方式、优惠券列表）
* @author wliu
* edit tse
*/
public class ShoppingGetForBuyConsignees extends RudderResponse{

private String consigneeId = "";


private String consigneeName = "";


private String consigneeTel = "";


private String consigneeCard = "";


private ShoppingGetForBuyConsigneesProvince province = new ShoppingGetForBuyConsigneesProvince();


private ShoppingGetForBuyConsigneesCity city = new ShoppingGetForBuyConsigneesCity();


private ShoppingGetForBuyConsigneesDistrict district = new ShoppingGetForBuyConsigneesDistrict();


private String address = "";


private String isDefault = "";


/**
* @return consigneeId
*/
public String getConsigneeId() {
return this.consigneeId;
}

/**
* @return consigneeId
*/
public void setConsigneeId(String consigneeId) {
this.consigneeId = consigneeId;
}
/**
methodName    ConsigneeId
type          String
name          consigneeId
defaultType   ""
*/

/**
* @return consigneeName
*/
public String getConsigneeName() {
return this.consigneeName;
}

/**
* @return consigneeName
*/
public void setConsigneeName(String consigneeName) {
this.consigneeName = consigneeName;
}
/**
methodName    ConsigneeName
type          String
name          consigneeName
defaultType   ""
*/

/**
* @return consigneeTel
*/
public String getConsigneeTel() {
return this.consigneeTel;
}

/**
* @return consigneeTel
*/
public void setConsigneeTel(String consigneeTel) {
this.consigneeTel = consigneeTel;
}
/**
methodName    ConsigneeTel
type          String
name          consigneeTel
defaultType   ""
*/

/**
* @return consigneeCard
*/
public String getConsigneeCard() {
return this.consigneeCard;
}

/**
* @return consigneeCard
*/
public void setConsigneeCard(String consigneeCard) {
this.consigneeCard = consigneeCard;
}
/**
methodName    ConsigneeCard
type          String
name          consigneeCard
defaultType   ""
*/

/**
* @return province
*/
public ShoppingGetForBuyConsigneesProvince getProvince() {
return this.province;
}

/**
* @return province
*/
public void setProvince(ShoppingGetForBuyConsigneesProvince province) {
this.province = province;
}
/**
methodName    Province
type          ShoppingGetForBuyConsigneesProvince
name          province
defaultType   new ShoppingGetForBuyConsigneesProvince()
*/

/**
* @return city
*/
public ShoppingGetForBuyConsigneesCity getCity() {
return this.city;
}

/**
* @return city
*/
public void setCity(ShoppingGetForBuyConsigneesCity city) {
this.city = city;
}
/**
methodName    City
type          ShoppingGetForBuyConsigneesCity
name          city
defaultType   new ShoppingGetForBuyConsigneesCity()
*/

/**
* @return district
*/
public ShoppingGetForBuyConsigneesDistrict getDistrict() {
return this.district;
}

/**
* @return district
*/
public void setDistrict(ShoppingGetForBuyConsigneesDistrict district) {
this.district = district;
}
/**
methodName    District
type          ShoppingGetForBuyConsigneesDistrict
name          district
defaultType   new ShoppingGetForBuyConsigneesDistrict()
*/

/**
* @return address
*/
public String getAddress() {
return this.address;
}

/**
* @return address
*/
public void setAddress(String address) {
this.address = address;
}
/**
methodName    Address
type          String
name          address
defaultType   ""
*/

/**
* @return isDefault
*/
public String getIsDefault() {
return this.isDefault;
}

/**
* @return isDefault
*/
public void setIsDefault(String isDefault) {
this.isDefault = isDefault;
}
/**
methodName    IsDefault
type          String
name          isDefault
defaultType   ""
*/

/**


    private static void filterFor(ShoppingGetForBuyConsigneesProvince shopping) {
        if (shopping.getRegionId() == null) {
            shopping.setRegionId("");
        }
        if (shopping.getRegionName() == null) {
            shopping.setRegionName("");
        }
    }

    private static void filterFor(ShoppingGetForBuyConsigneesCity shopping) {
        if (shopping.getRegionId() == null) {
            shopping.setRegionId("");
        }
        if (shopping.getRegionName() == null) {
            shopping.setRegionName("");
        }
    }

    private static void filterFor(ShoppingGetForBuyConsigneesDistrict shopping) {
        if (shopping.getRegionId() == null) {
            shopping.setRegionId("");
        }
        if (shopping.getRegionName() == null) {
            shopping.setRegionName("");
        }
    }

    public static void filter(ShoppingGetForBuyConsignees shopping) {
        if (shopping.getConsigneeId() == null) {
            shopping.setConsigneeId("");
        }
        if (shopping.getConsigneeName() == null) {
            shopping.setConsigneeName("");
        }
        if (shopping.getConsigneeTel() == null) {
            shopping.setConsigneeTel("");
        }
        if (shopping.getConsigneeCard() == null) {
            shopping.setConsigneeCard("");
        }
        if (shopping.getProvince() == null) {
            shopping.setProvince(new ShoppingGetForBuyConsigneesProvince());
        } else {
            filterFor(shopping.getProvince());
        }
        if (shopping.getCity() == null) {
            shopping.setCity(new ShoppingGetForBuyConsigneesCity());
        } else {
            filterFor(shopping.getCity());
        }
        if (shopping.getDistrict() == null) {
            shopping.setDistrict(new ShoppingGetForBuyConsigneesDistrict());
        } else {
            filterFor(shopping.getDistrict());
        }
        if (shopping.getAddress() == null) {
            shopping.setAddress("");
        }
        if (shopping.getIsDefault() == null) {
            shopping.setIsDefault("");
        }
    }

*/

}
